package com.zhangkunhao.notes.entity.bo;

import com.zhangkunhao.notes.entity.Do.Answer;
import com.zhangkunhao.notes.entity.Do.AnswerComment;
import com.zhangkunhao.notes.entity.Do.Question;

import java.util.List;


/**
 * 封装返回给前端的对象
 *
 * @author 20642
 */
public class PostPageBean {
    /**
     * 分页查询问题的总条目数量
     */
    private Integer allCount;
    /**
     * 返回的查询的集合对象
     */
    private List<Question> questionList;
    private List<Answer> answerList;
    private List<AnswerComment> answerCommentList;


    public PostPageBean() {
    }

    public PostPageBean(Integer allCount, List<Question> questionList, List<Answer> answerList, List<AnswerComment> answerCommentList) {
        this.allCount = allCount;
        this.questionList = questionList;
        this.answerList = answerList;
        this.answerCommentList = answerCommentList;
    }

    /**
     * 获取
     *
     * @return allCount
     */
    public Integer getAllCount() {
        return allCount;
    }

    /**
     * 设置
     *
     * @param allCount：分页的总数
     */
    public void setAllCount(Integer allCount) {
        this.allCount = allCount;
    }

    /**
     * 获取
     *
     * @return questionList
     */
    public List<Question> getQuestionList() {
        return questionList;
    }

    /**
     * 设置
     *
     * @param questionList：问题集合
     */
    public void setQuestionList(List<Question> questionList) {
        this.questionList = questionList;
    }

    /**
     * 获取
     *
     * @return answerList
     */
    public List<Answer> getAnswerList() {
        return answerList;
    }

    /**
     * 设置
     *
     * @param answerList：回答集合
     */
    public void setAnswerList(List<Answer> answerList) {
        this.answerList = answerList;
    }

    /**
     * 获取
     *
     * @return answerCommentList
     */
    public List<AnswerComment> getAnswerCommentList() {
        return answerCommentList;
    }

    /**
     * 设置
     *
     * @param answerCommentList：评论的集合
     */
    public void setAnswerCommentList(List<AnswerComment> answerCommentList) {
        this.answerCommentList = answerCommentList;
    }

    @Override
    public String toString() {
        return "PostPageBean{allCount = " + allCount + ", questionList = " + questionList + ", answerList = " + answerList + ", answerCommentList = " + answerCommentList + "}";
    }
}
